package com.zhuangwei.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件第一种方式
 * @author LeviCoder
 * @create 2019-01-27 15:05
 */
@Component
@Data
public class ApplicationConfig
{
    @Value("${application.name}")
    private String name;
    @Value("${application.version}")
    private String version;




}
